package cn.lingyangwl.agile.system.model.entity;

import cn.lingyangwl.agile.model.BasePO;
import cn.lingyangwl.agile.tenant.core.DataIsolation;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 部门和用户的关系表
 * @author shenguangyang
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("sys_user_dept")
@DataIsolation(filterTenant = true, deleteUserData = true, tableName = "sys_user_dept")
public class SysUserDeptRel extends BasePO {
    public static LambdaQueryWrapper<SysUserDeptRel> lqw() {
        return Wrappers.lambdaQuery();
    }

    /** 用户id */
    private Long userId;
    /** 部门id */
    private Long deptId;
}
